package io.ewolf.ssm.po;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.ewolf.ssm.validation.ValidGroup1;

public class Item {

	private int id;

	// 校验名称在1~30个字符之间
	// message：提示校验出错显示的信息
	// groups:此校验属于哪个分组，groups可以定义多个分组。
	@Size(min = 1, max = 30, message = "{item.itemname.length.error}", groups = { ValidGroup1.class })
	private String itemname;

	private String color;

	// 非空校验
	@NotNull(message = "{item.producetime.isNull}")
	private Date producetime;

	private String produceaddress;

	private String detail;

	private int orderdetail_id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getItemname() {
		return itemname;
	}

	public void setItemname(String itemname) {
		this.itemname = itemname;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Date getProducetime() {
		return producetime;
	}

	public void setProducetime(Date producetime) {
		this.producetime = producetime;
	}

	public String getProduceaddress() {
		return produceaddress;
	}

	public void setProduceaddress(String produceaddress) {
		this.produceaddress = produceaddress;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public int getOrderdetail_id() {
		return orderdetail_id;
	}

	public void setOrderdetail_id(int orderdetail_id) {
		this.orderdetail_id = orderdetail_id;
	}

}
